package com.guodefu.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guodefu.demo.domain.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

@Mapper
public interface PaymentMapper extends BaseMapper<Payment> {

    @Select("SELECT id,serial_no,amount,pay_time,name AS payName FROM payment_info WHERE amount = #{amount}")
    Payment selectByAmount(BigDecimal amount);
}
